<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>上传文件</title>
</head>
<body>
    <!-- 这里enctype="multipart/form-data"就是使用form-data的格式构造到请求中 -->
    <form action="upload" method="post" enctype="multipart/form-data">
        <!-- 设置为file就会有个自带的选择文件的按钮 -->
        <input type="file" name="MyImage">
        <input type="submit" value="提交">
    </form>
</body>
</html>